package com.example.demo.controller;

import com.example.demo.common.BasePageResponse;
import com.example.demo.common.ResultObject;
import com.example.demo.model.request.ProviderPageRequest;
import com.example.demo.model.request.VisaPageRequest;
import com.example.demo.model.request.VisaRequest;
import com.example.demo.model.response.ProviderResponse;
import com.example.demo.model.response.VisaResponse;
import com.example.demo.service.order.IProviderService;
import com.example.demo.service.order.IVisaCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("v1/provider/")
public class ProviderController {
    @Autowired
    private IProviderService iProviderService;
    @GetMapping(value = "list")
    public ResultObject<BasePageResponse<ProviderResponse>> queryPageProviderList(ProviderPageRequest providerPageRequest) {
        return iProviderService.queryPageProviderList(providerPageRequest);
    }
}
